<div class="view">

	<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
	<?php echo CHtml::link($data->id,array('use')); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('客户名')); ?>:</b>
	<?php echo CHtml::encode($data->name->username); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('团购名称')); ?>:</b>
	<?php echo CHtml::encode($data->teamname->title); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('consume')); ?>:</b>
	<?php echo CHtml::encode($data->consume); ?>
	<br />


	<b><?php echo CHtml::encode($data->getAttributeLabel('expire_time')); ?>:</b>
	<?php echo date('Y年m月d日G时i分',CHtml::encode($data->expire_time)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('consume_time')); ?>:</b>
	<?php if($data->consume_time==0) echo '尚未消费';
		  else  echo date('Y年m月d日G时i分',CHtml::encode($data->consume_time)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('create_time')); ?>:</b>
	<?php echo date('Y年m月d日G时i分',CHtml::encode($data->create_time)); ?>
	<br />



</div>